Finding square of a number using (a+b)^2 identity